
/**
 * Record pre-update trigger.
 * Validate the record to be updated.
 * When false is returned the record will not be updated in the database.
 * When an exception is thrown the record will also not be updated in the database but it will be added to databaseManager.getFailedRecords(),
 * the thrown exception can be retrieved via record.exception.getValue().
 *
 * @param {JSRecord<db:/infocom/ctacte_cl>} record record that will be updated
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"927D8CAA-B39C-4A1E-908A-D7D4E37015CE"}
 */
function onCtacte_clRecordUpdate(record) {
	if (record.ctacte_cl_to_tab_mov_cl_copia.d_h == 2)
		record.saldo_signo = record.saldo * (-1);
	else
		record.saldo_signo = record.saldo
	return true
}
